package ithink.link.base.service;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by zaqb on 17-9-10.
 */
@Root(name = "LinkServerConfig")
public class LinkServerConfig {
    private static final Logger LOGGER = LoggerFactory.getLogger( LinkServerConfig.class);
    @Element(name = "UserPort")
    private int userPort;

    @Element(name = "WebPort")
    private int webPort;

    @Attribute(name = "ServerName")
    private String serverName;
    @Element(name = "ExternalIp")
    private String externalIp;
    @Element(name = "InternalIp")
    private String internalIp;

    @Element(name = "MaxAccessCount")
    private int maxAccessCount;

    @Element(name = "FixedKey")
    private String fixedKey;

    public String getFixedKey() {
        return fixedKey;
    }

    public void setFixedKey(String fixedKey) {
        this.fixedKey = fixedKey;
    }

    public int getUserPort() {
        return userPort;
    }
    public void setUserPort(int userPort) {
        this.userPort = userPort;
    }

    public int getWebPort() {
        return webPort;
    }
    public void setWebPort(int webPort) {
        this.webPort = webPort;
    }

    public void setServerName(String name) {
        this.serverName = name;
    }
    public String getServerName() {
        return serverName;
    }

    public int getMaxAccessCount() {
        return maxAccessCount;
    }
    public void setMaxAccessCount(int maxAccessCount) {
        this.maxAccessCount = maxAccessCount;
    }


    public String getExternalIp() {
        return externalIp;
    }

    public void setExternalIp(String externalIp) {
        this.externalIp = externalIp;
    }

    public String getInternalIp() {
        return internalIp;
    }

    public void setInternalIp(String internalIp) {
        this.internalIp = internalIp;
    }


}
